import time
import pytest
from selenium import webdriver
from yuekao1013.Page.Page import Page

@pytest.fixture(scope='session')
class Test(Page):
    def driver(self):
        self.driver = webdriver.Edge()
        self.driver.maximize_window()
        yield self.driver
        self.driver.implicitly_wait(10)
        self.driver.close()

    def test_01(self,driver):
        po = Page(driver)
        po.luoji_sougou_01()